import { defHttp } from "@/utils/http";
import { baseUrlApi } from "./utils";
/** 销售出库单列表带分页 */
export const getProduceOutboundApplyOrderPageList = <T>(data?: object) => {
  return defHttp.post<T>({
    url: baseUrlApi("/produceOutboundApplyOrder/outbound/pagelist"),
    data
  });
};
/** 销售出库单可出料物资明细 */
export const getProduceOutboundApplyOrderMaterials = <T>(data?: object) => {
  return defHttp.post<T>({
    url: baseUrlApi(
      "/produceOutboundApplyOrder/outbound/getProduceOutboundApplyOrderMaterials"
    ),
    data
  });
};
/** 销售出库单详情 */
export const getProduceOutboundApplyOrderDetail = <T>(data?: object) => {
  return defHttp.post<T>({
    url: baseUrlApi("/produceOutboundApplyOrder/outbound/detail"),
    data
  });
};
/** 交付订单列表查询 */
export const getProduceOutboundApplyOrderDeliverQueryList = <T>(
  data?: object
) => {
  return defHttp.post<T>({
    url: baseUrlApi("/produceOutboundApplyOrder/outbound/deliverQueryList"),
    data
  });
};
/** 新增销售出库 */
export const getProduceOutboundApplyOrderAdd = <T>(data?: object) => {
  return defHttp.post<T>({
    url: baseUrlApi("/produceOutboundApplyOrder/outbound/add"),
    data
  });
};
